Problems looping through filtered dataset

I have written a script which filters the database on a particular attribute.  It is then supposed to loop through this filtered list and, for now, simply give me an infoBox with the Absolute Number.  However, the script is displaying the values for all of the tables in the module even if they are not in the filtered list of objects.  I cannot figure out why it would do this when those are the only items erroneously being displayed.  None of the text objects not in the filtered set are shown.  I have even tried to manually filter the module and the tables are not listed, so why would the code include all table objects?

 

Here is the loop I'm running:

for oObj in document(bm2) do {
    absNum = oObj."Absolute Number";
    infoBox("Object #" absNum ".");
}

I've also tried removing the word "document"  in front of bm2 and it still does the same thing.

Any and all help is greatly appreciated as this is a fairly high priority issue I need to fix.

 

Chris


chrscote - Tue Apr 18 14:44:15 EDT 2017

Re: Problems looping through filtered dataset
Mathias Mamsch - Fri Apr 21 10:18:47 EDT 2017

Your loop will process whatever is shown in your Module GUI. Note the default behaviour of DOORS is to show all table cells when you filter. Play with the settings and see if you can get the display set that you want. Regards, Mathias